package com.zmn.plat.common.exception;

/**
 * @author tanghongjun
 * @version v1.0 @类说明： 参数超出取值范围异常
 * @since 2020/9/11
 */
public class PlatException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private Integer errorCode;

    public PlatException() {}

    public PlatException(String message) {
        super(message);
    }

    public PlatException(String message, Throwable cause) {
        super(message, cause);
    }

    public PlatException(Throwable cause) {
        super(cause);
    }

    public PlatException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public PlatException(Integer errorCode) {
        super(errorCode+"");
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
}
